package com.lorenzogao.pley.ui.data

import com.lorenzogao.pley.bean.BaseBean
import com.lorenzogao.pley.bean.Category
import com.lorenzogao.pley.ui.data.http.ApiService
import com.lorenzogao.pley.ui.presenter.contract.CategoryContract
import io.reactivex.Observable

/**
 * 作者：Lorenzo Gao
 * Date: 2018/1/5
 * Time: 11:26
 * 邮箱：2508719070@qq.com
 * Description:
 */

class CategoryModel(apiService: ApiService) : CategoryContract.ICategoryModel {


    private  var mApiService: ApiService = apiService


//    override fun login(phone: String, password: String): Observable<BaseBean<LoginBean>> {
//        var  params=LoginRequestBean(phone,password)
//
//        return mApiService.login(params)
//    }


    override fun getCategories(): Observable<BaseBean<List<Category>>> {

        return mApiService.getCategories()
    }
}
